package com.csx.base.design.structure.flyweight;

/**
 * @author cuisongxu
 * @date 2022/9/21 12:23
 */
public class Client {


    public static void main(String[] args) {
        TitleFactory factory = new TitleFactory();

        factory.getDrawable("河流").draw(10,10);
        factory.getDrawable("河流").draw(10,20);
        factory.getDrawable("道路").draw(10,10);
        factory.getDrawable("房屋").draw(10,30);
        factory.getDrawable("草地").draw(20,10);
        factory.getDrawable("道路").draw(15,10);
        factory.getDrawable("河流").draw(14,10);
        factory.getDrawable("河流").draw(10,10);
    }
}
